package ch.zbw.pra.sysventory.application.controller;

import java.io.Serializable;
import java.util.List;

import ch.zbw.pra.sysventory.dataaccess.dataAccessObject.SoftwareDataAccessObject;
import ch.zbw.pra.sysventory.model.Software;

/**
 * Controller für die gesammelten Softwares
 * 
 * @author Ralph Koster
 */

public class SoftwareController implements Serializable {

	private static final long serialVersionUID = -1001464791155995027L;
	
	private SoftwareDataAccessObject softwareDataAccessObject;
	private List<Software> softwares;

	public SoftwareController() {
		this.softwareDataAccessObject = new SoftwareDataAccessObject();
	}

	public List<Software> loadSoftwares() {
		softwares = softwareDataAccessObject.getAllSoftwareFromDatabase();
		return softwares;
	}
}